package com.geekhalo.admin.domain.user.update;

import com.geekhalo.admin.domain.user.update.UpdateUserCommand; 
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class UpdateUserContext{
    private UpdateUserCommand command;

    private UpdateUserContext(UpdateUserCommand command){
         this.command = command;
    }

    public static UpdateUserContext apply(UpdateUserCommand command) {
        UpdateUserContext context = new UpdateUserContext(command);
        return context;
    }
}
